package com.exam.util;

import javax.servlet.http.HttpSession;

import com.exam.role.model.User;

public class Constants {
	public static final String CURRENT_USER = "currentUser";

	public class Role {
		public static final String STUDENT = "0";
		public static final String TEACHER = "1";
	}

	public static User loginUser(HttpSession session) {
		return (User) session.getAttribute(CURRENT_USER);
	}
}
